package com.gugee.ins.common.dal.mapper.media;

import com.gugee.ins.common.dto.InsMediaScoreDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * InsMediaExtMapper
 * @author Huangxin
 */
public interface InsMediaExtMapper extends InsMediaMapper {
    /**
     * 批量更新 帖子分数
     * @param insMediaScoreDtoList
     * @param updateTime
     */
    void batchUpdateScore(@Param("insMediaScoreDtoList")List<InsMediaScoreDto> insMediaScoreDtoList,@Param("updateTime")long updateTime);

    /**
     * 更新 帖子分数
     * @param id
     * @param score
     * @param updateTime
     */
    void updateScore(@Param("id")long id,@Param("score")double score,@Param("updateTime")long updateTime);
}